<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>table 模块快速使用</title>
  <link rel="stylesheet" href="/static/layui/css/layui.css" media="all">
</head>
<body>

<table id="demo" lay-filter="test"></table>

<script src="/static/layui/layui.js"></script>
<script>
layui.use('table', function(){
  var table = layui.table;

  //第一个实例
  table.render({
    elem: '#demo'
    ,toolbar: true
    // ,height: 312
    ,url: '/grt_regression_2' //数据接口
    ,page: false //开启分页
    ,cols: [[ //表头
      {field: '0', title: '0', width:200, fixed: 'left'}
      ,{field: '1', title: '1', width:200}
      ,{field: '2', title: '2', width:200}
      ,{field: '3', title: '3', width:200}
      ,{field: '4', title: '4', width:200}
      ,{field: '5', title: '5', width: 200}
      ,{field: '6', title: '6', width:200}
    ]]
  });

});
</script>
</body>
</html>